package com.p2p.front.vo;

import java.util.List;

import org.apache.commons.collections.CollectionUtils;

import com.p2p.base.result.BaseResult;

public class UserCenterResult extends BaseResult {

	
	public UserCenterResult() {}
	
	public UserCenterResult(boolean isSuccess,List<String> msgs){
		setSuccess(isSuccess);
		setMsgs(msgs);
	}
	
	public UserCenterResult(boolean isSuccess,String resultCode){
		setSuccess(isSuccess);
		setResultCode(resultCode);
	}
	
	public void clearMsg(){
		if (CollectionUtils.isNotEmpty(getMsgs())) {
			getMsgs().clear();
		}
	}
}
